import BasicLayout from '@/layouts/basic-layout';

export default {
  path: '/admin/article',
  name: 'article',
  header: 'article',
  redirect: {
    name: `content_article`
  },
  component: BasicLayout,
  children: [

    {
      path: 'new',
      name: `content_article_New`,
      meta: {
        auth: ['content_article_New'],
        title: '内容创作'
      },
      component: () => import('@/pages/content/New')
    },
    {
      path: 'cover_edit/:id?',
      name: `content_article_ArticleCoverEdit`,
      meta: {
        auth: ['content_article_ArticleCoverEdit'],
        title: '封面编辑',
      },
      component: () => import('@/pages/content/ArticleCoverEdit')
    },


    {
      path: 'list',
      name: `content_article_List`,
      meta: {
        auth: ['content_article_List'],
        title: '文章列表'
      },
      component: () => import('@/pages/content/List')
    },
    {
      path: 'main_relation',
      name: `content_article_MainRelation`,
      meta: {
        auth: ['content_article_MainRelation'],
        title: '网站专栏'
      },
      component: () => import('@/pages/content/MainRelation')
    },
    {
      path: 'sort_relation',
      name: `content_article_SortRelation`,
      meta: {
        auth: ['content_article_SortRelation'],
        title: '分类专栏'
      },
      component: () => import('@/pages/content/SortRelation')
    },
    {
      path: 'sort_category',
      name: `content_article_SortCategory`,
      meta: {
        auth: ['content_article_SortCategory'],
        title: '文章分类管理'
      },
      component: () => import('@/pages/content/SortCategory')
    },





  ]
};
